package com.example.edupublisher.service.imp;

import com.example.edupublisher.bean.TrafficKeywords;
import com.example.edupublisher.mapper.TrafficKeywordsMapper;
import com.example.edupublisher.service.TrafficKeywordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: TrafficKeywordsServiceImpl
 * Package: com.atguigu.edu.publisher.service.impl
 * Description:
 *
 * @Author Mr.2
 * @Create 2023/9/11 15:22
 * @Version 1.0
 */
@Service
public class TrafficKeywordsServiceImpl implements TrafficKeywordsService {

    //
    @Autowired
    TrafficKeywordsMapper trafficKeywordsMapper;
    // 关键词统计
    @Override
    public List<TrafficKeywords> getKeywords(Integer date) {
        return trafficKeywordsMapper.selectKeywords(date);
    }
}
